package com.css.dzj.dzjap.modules.lawenforcesuper.service;


import com.css.dzj.dzjap.common.util.R;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.ApExpertRegulatorInfoEntity;
import com.css.dzj.dzjap.modules.lawenforcesuper.entity.ApExtractExpertEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 审查专家监管
 * @author liyunyue
 */
@Service
public interface ApExpertRegulatorService {

    /**
     * 创建监管任务抽取专家
     * @param list
     * @return
     */
    R extract(ApExtractExpertEntity apExtractExpertEntity, List<ApExpertRegulatorInfoEntity> list, HttpServletRequest request);

    /**
     * 分页查询所有监管任务
     * @param pageable
     * @param title
     * @return
     */
    QueryResults<ApExtractExpertEntity> queryAll(Pageable pageable, String title, HttpServletRequest request);


    /**
     * 通过主键id获取
     * @param regulatId
     * @return
     */
    ApExpertRegulatorInfoEntity queryById(String regulatId);


    /**
     * 通过任务id获取所有专家抽取条件信息
     * @param taskId
     * @return
     */
    List<ApExpertRegulatorInfoEntity> queryRegulatorByTaskId(String taskId);
}
